package com.ity.teamanagement.code;

/**
 * @author coderFu
 * @create 2021/6/6
 */
public enum SysConfigCode implements Code {

    URL_SET_SUCCESS(true,3000,"URL路径配置成功"),
    URL_UPDATE_SUCCESS(true,3001,"URL路径更新成功"),
    URL_UPDATE_FAIL(false,3002,"URL路径更新失败"),
    URL_DELETE_FAIL(false,3003,"URL路径删除失败"),
    URL_DELETE_SUCCESS(true,3004,"URL路径删除成功"),
    URL_ADD_FAIL(false,3005,"URL路径添加失败"),
    URL_ADD_SUCCESS(true,3006,"URL路径添加成功"),
    RECEPTION_CLOSE_FAIL(false,4000,"前台关闭失败"),
    RECEPTION_OPEN_FAIL(false,4001,"前台开启失败"),
    URL_SET_ERROR(false,3007,"URL路径配置失败");

    private boolean success;

    private Integer code;

    private String message;

    SysConfigCode(boolean success, Integer code, String message){
        this.success = success;
        this.code = code;
        this.message = message;
    }
    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
